package com.ycrlkj.android.modulescore.main.viewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.ycrlkj.android.modulescore.main.entity.User;

public class UserViewModel extends ViewModel {

    public MutableLiveData<User> user;

    public MutableLiveData<User> getUser(){
        if(user == null){
            user = new MutableLiveData<>();
            user.setValue(new User());
        }
        return user;
    }


}
